package com.example.app;

import java.util.Iterator;
import java.util.ServiceLoader;

import com.spi.Search;

public class Main {
	public static void main(String[] args) {
		ServiceLoader<Search> s = ServiceLoader.load(Search.class);
		Iterator<Search> iterator = s.iterator();
		while (iterator.hasNext()) {
			Search search = iterator.next();
			String helloWorld = search.searchDoc("hello world");
		}
	}
}
